package com.udd.data.person;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

public class PersonRowMapper implements RowMapper<PersonTO> {

	@Override
	public PersonTO mapRow(ResultSet rs, int rowNum) throws SQLException {
		PersonTO p = new PersonTO();
		p.setId(rs.getLong("id"));
		p.setName(rs.getString("name"));
		return p;
	}

}
